package com.cyj.dream.admin.service.system;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.cyj.dream.admin.model.request.SysContactsQueryRequest;
import com.cyj.dream.admin.model.system.SysContacts;
import com.cyj.dream.core.constant.pagemodel.PageParam;

import java.util.List;

/**
 * @Description: 通讯录服务类
 * @BelongsProject: dream-DreamChardonnay
 * @BelongsPackage: com.dream.DreamChardonnay.service
 * @Author: ChenYongJia
 * @CreateTime: 2021-05-19 15:33
 * @Email: chen87647213@163.com
 * @Version: 1.0
 */
public interface SysContactsService {

    /**
     * 分页查询通讯录信息
     *
     * @param pageParam 分页参数以及入参
     * @return com.baomidou.mybatisplus.core.metadata.IPage<com.dream.DreamChardonnay.model.system.SysContacts>
     * @date 2021/5/20 9:47
     * @author ChenYongJia
     * @version 1.0
     */
    IPage<SysContacts> list(PageParam<SysContactsQueryRequest> pageParam);

    /**
     * 不分页查询通讯录信息
     *
     * @param param 参数以及入参
     * @return java.util.List<com.dream.DreamChardonnay.model.system.SysContacts>
     * @date 2021/7/1 16:11
     * @author ChenYongJia
     * @version 1.0
     */
    List<SysContacts> allSysContactsByParam(SysContactsQueryRequest param);

    /**
     * 根据通讯录id查询通讯录信息
     *
     * @param sysContacts 通讯录对象
     * @return com.dream.DreamChardonnay.model.system.SysContacts
     * @date 2021-5-19 15:42:03
     * @author ChenYongJia
     * @version 1.0
     */
    SysContacts selectBySysContactsId(SysContacts sysContacts);

    /**
     * 添加通讯录信息
     *
     * @param sysContacts 通讯录对象
     * @return boolean
     * @date 2021-5-19 16:03:43
     * @author ChenYongJia
     * @version 1.0
     */
    boolean addSysContacts(SysContacts sysContacts);

    /**
     * 修改通讯录信息
     *
     * @param sysContacts 通讯录对象
     * @return boolean
     * @date 2021-5-19 16:03:47
     * @author ChenYongJia
     * @version 1.0
     */
    boolean updateSysContacts(SysContacts sysContacts);

    /**
     * 删除通讯录信息
     *
     * @param sysContacts 通讯录对象集合
     * @return boolean
     * @date 2021-5-19 16:03:50
     * @author ChenYongJia
     * @version 1.0
     */
    boolean deleteSysContacts(List<SysContacts> sysContacts);


}
